package com.xmim.fulcrum.node;

/**
 * IM节点的POJO类
 * create by CAOYOU
 **/

public class DefaultFulcrumServiceNode extends DefaultFulcrumNode implements FulcrumServiceNode {

    private Integer balance = 0;


    @Override
    public void incrementBalance() {
        balance++;
    }

    @Override
    public void decrementBalance() {
        balance--;
    }

    @Override
    public Integer getBalance() {
        return balance;
    }

    @Override
    public String toString() {
        return "DefaultFulcrumServiceNode{" +
                "balance=" + balance +
                ", id=" + id +
                ", host='" + host + '\'' +
                ", port=" + port +
                ", path='" + path + '\'' +
                '}';
    }
}
